No need for separate top-level check for page owner being NULL: this
can be folded into the case that page owner is not who the caller
expected (caller will never expect NULL owner).
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
return 1;
}
- if ( real_pg_owner == NULL )
- goto could_not_pin;
-
if ( unlikely(real_pg_owner != pg_owner) )
{
/*
* dom0, until pvfb supports granted mappings. At that time this
* minor hack can go away.
*/
- if ( (pg_owner == l1e_owner) || !IS_PRIV_FOR(pg_owner, real_pg_owner) )
+ if ( (real_pg_owner == NULL) || (pg_owner == l1e_owner) ||
+ !IS_PRIV_FOR(pg_owner, real_pg_owner) )
goto could_not_pin;
pg_owner = real_pg_owner;
}